package com.bite.mybatistext.mapper;

import com.bite.mybatistext.model.UserInfo;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


import java.util.List;

@Mapper
public interface UserInfoXMLMapper {
    List<UserInfo> queryAll();

    List<UserInfo> queryAll1(Integer id);

    List<UserInfo> queryAll2();

    Integer insert(UserInfo userInfo);

    Integer delete(Integer id);

    Integer update(UserInfo userInfo);

    @Select("select * from userInfo where username like '%${key}%'")
    List<UserInfo> LikeByCondition(String key);

    Integer insertUserByCondition(UserInfo userInfo);

    List<UserInfo> selectUserByCondition(UserInfo userInfo);

    Integer updateByCondition(UserInfo userInfo);
}
